package org.mklink.domain;

import javafx.scene.control.Control;

/**
 * 泛型控件包装类
 *
 * @param <T> 控件类型
 * @author WangYixiong
 */
public class ControlWrapper<T extends Control> {
    private String name;
    private T control;
    
    public ControlWrapper(String name, T control) {
        this.name = name;
        this.control = control;
    }
    
    public String getName() {
        return name;
    }
    
    public ControlWrapper<T> setName(String name) {
        this.name = name;
        return this;
    }
    
    public T getControl() {
        return control;
    }
    
    public ControlWrapper<T> setControl(T control) {
        this.control = control;
        return this;
    }
}
